package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ApproveLogMapper;
import com.ruoyi.system.domain.ApproveLog;
import com.ruoyi.system.service.IApproveLogService;

/**
 * 审批记录Service业务层处理
 * 
 * @author hyb
 * @date 2023-02-06
 */
@Service
public class ApproveLogServiceImpl implements IApproveLogService 
{
    @Autowired
    private ApproveLogMapper approveLogMapper;

    /**
     * 查询审批记录
     * 
     * @param id 审批记录主键
     * @return 审批记录
     */
    @Override
    public ApproveLog selectApproveLogById(Long id)
    {
        return approveLogMapper.selectApproveLogById(id);
    }

    /**
     * 查询审批记录列表
     * 
     * @param approveLog 审批记录
     * @return 审批记录
     */
    @Override
    public List<ApproveLog> selectApproveLogList(ApproveLog approveLog)
    {
        return approveLogMapper.selectApproveLogList(approveLog);
    }

    /**
     * 新增审批记录
     * 
     * @param approveLog 审批记录
     * @return 结果
     */
    @Override
    public int insertApproveLog(ApproveLog approveLog)
    {
        return approveLogMapper.insertApproveLog(approveLog);
    }

    /**
     * 修改审批记录
     * 
     * @param approveLog 审批记录
     * @return 结果
     */
    @Override
    public int updateApproveLog(ApproveLog approveLog)
    {
        return approveLogMapper.updateApproveLog(approveLog);
    }

    /**
     * 批量删除审批记录
     * 
     * @param ids 需要删除的审批记录主键
     * @return 结果
     */
    @Override
    public int deleteApproveLogByIds(Long[] ids)
    {
        return approveLogMapper.deleteApproveLogByIds(ids);
    }

    /**
     * 删除审批记录信息
     * 
     * @param id 审批记录主键
     * @return 结果
     */
    @Override
    public int deleteApproveLogById(Long id)
    {
        return approveLogMapper.deleteApproveLogById(id);
    }

    @Override
    public List<ApproveLog> selectApproveLogpf2orpf3(ApproveLog approveLog) {
        return approveLogMapper.selectApproveLogpf2orpf3(approveLog);
    }

    @Override
    public void updateApproveLogByActivityIdAndPf3(ApproveLog approveLog) {
        approveLogMapper.updateApproveLogByActivityIdAndPf3(approveLog);
    }

    @Override
    public List<ApproveLog> selectApproveLogListByAll(ApproveLog a) {
        return approveLogMapper.selectApproveLogListByAll(a);
    }
}
